﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UI2.Data.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Detalles de la publicacion</h2>

<fieldset>
    <legend><%: Model.Name %></legend>

    <div class="display-label">
        <%: Html.DisplayName("Producto: ") %>
    </div>
    <div class="display-field">
        <%: Html.EditorFor(model => model.Name) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayName("Descripcion: ")%>
    </div>
    <div class="display-field">
        <%: Html.EditorFor(model => model.Description)%>
    </div>

    <div class="display-label">
        <%: Html.DisplayName("Cantidad: ")%>
    </div>
    <div class="display-field">
        <%: Html.EditorFor(model => model.Stock)%>
    </div>

    <div class="display-label">
        <%: Html.DisplayName("Precio: ")%>
    </div>
    <div class="display-field">
        <%: Html.EditorFor(model => model.Precio)%>
    </div>

    <div class="display-label">
        <%: Html.DisplayName("Deporte: ")%>
    </div>
    <div class="display-field">
        <%: Html.EditorFor(model => model.IdSport)%>
    </div>
</fieldset>
<p>
    <%: Html.ActionLink("Comprar", "Edit"/*, new { userId = @ViewBag.UserId, saleId = Model.Id, productId = Model.Id }*/)%>
</p>
<p>
    <%: Html.ActionLink("Volver", "Index") %>
</p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
